﻿using System;
using System.Collections.Generic;

using System.Text;
using QUANLYCHAMCONG.BL.Entities.Security;
using QUANLYCHAMCONG.DAO.DAO.Security;
using System.Data;

namespace QUANLYCHAMCONG.BL.BUS.Security
{
   public class MENUGROUPBUS
    {
       public MENUGROUPBUS() { }
        public static bool Insert(MENUGROUP user)
        {
            MENUGROUPDAO dao = new MENUGROUPDAO();
            return dao.Insert(user);
        }
        public static bool Update(MENUGROUP user)
        {
            MENUGROUPDAO dao = new MENUGROUPDAO();
            return dao.Update(user);
        }
        public static bool Delete(MENUGROUP user)
        {
            MENUGROUPDAO dao = new MENUGROUPDAO();
            return dao.Delete(user);
        }
        public static bool DeleteEdit(MENUGROUP mnu)
        {
            MENUGROUPDAO dao = new MENUGROUPDAO();
            return dao.DeleteEdit(mnu);
        }
        public static DataTable SelectAll()
        {
            MENUGROUPDAO dao = new MENUGROUPDAO();
            return dao.SelectALL();
        }
        public static DataTable SelectPK(MENUGROUP user)
        {
            MENUGROUPDAO dao = new MENUGROUPDAO();
            return dao.SelectByPK(user);
        }
        public static DataTable SelectFlowForm(Authencation au)
        {
            MENUGROUPDAO dao = new MENUGROUPDAO();
            return dao.SelectFlowForm(au);
        }
        public static DataTable AuthencationValues(Authencation au)
        {

            MENUGROUPDAO dao = new MENUGROUPDAO();
            return dao.AuthencationValues(au);
        }
    }
}
